//
//  WDTaskAlarmRuleRequest.m
//  wd-serviceapp
//
//  Created by Bin Tang on 2025/3/3.
//

#import "WDTaskAlarmRuleRequest.h"

@interface WDTaskAlarmRuleRequest ()

/// 报警类型 0:抢单后抢单人APP定位一直在服务站内 1:抢单人APP定位距离服务站超出限定距离
@property (nonatomic, assign) NSInteger type;
@end

@implementation WDTaskAlarmRuleRequest

/// 初始化
/// - Parameter type: 报警类型 0:抢单后抢单人APP定位一直在服务站内 1:抢单人APP定位距离服务站超出限定距离
- (instancetype)initWithType:(NSInteger)type {
    if (self = [super init]) {
        self.type = type;
    }
    return self;
}

- (NSString *)requestUrl {
    return kTASK_TASK_ALARM_GET_RULE;
}

- (TYZRequestMethod)requestMethod {
    return TYZRequestMethodGET;
}

- (id)requestArgument {
    NSDictionary *params = @{@"type":@(self.type)};
    return params;
}

- (Class)rspClass {
    return [WDTaskAlarmRuleModel class];
}

@end
